<!-- 餐厅入驻申请列表 -->
<div class="search">
  <!-- <nz-select style="width:100px;" [(ngModel)]="status" nzAllowClear nzPlaceHolder="用户状态" (ngModelChange)="searchData()">
    <nz-option *ngFor="let item of statuslist" [nzValue]="item.key" [nzLabel]="item.value"></nz-option>
  </nz-select>
  注册日期:
  <nz-date-picker nzFormat="yyyy-MM-dd" [(ngModel)]="sdate" nzPlaceHolder="开始日期">
  </nz-date-picker>
  ~
  <nz-date-picker nzFormat="yyyy-MM-dd" [(ngModel)]="edate" nzPlaceHolder="结束日期">
  </nz-date-picker>
  升级日期:
  <nz-date-picker nzFormat="yyyy-MM-dd" [(ngModel)]="usdate" nzPlaceHolder="开始日期">
  </nz-date-picker>
  ~
  <nz-date-picker nzFormat="yyyy-MM-dd" [(ngModel)]="uedate" nzPlaceHolder="结束日期">
  </nz-date-picker> -->
  <nz-input-group nzSuffixIcon="anticon anticon-search" style="width:10%;margin-left:1rem;">
    <input type="text" nz-input placeholder="输入昵称/手机号查询"  >
  </nz-input-group>
  <!-- <a (click)="searchData()">查询</a> -->
</div>

<nz-table #ajaxTable nzShowSizeChanger [nzFrontPagination]="false"   
  [nzShowTotal]="totalTemplate" 
  [nzScroll]="{ x:'1300px',y: '600px' }">
  <thead>
    <tr>
      <th nzWidth="60px" nzLeft="0px">序号</th>
      <th nzWidth="100px">昵称</th>
      <!-- <th nzWidth="100px">姓名</th> -->
      <th nzWidth="100px">手机号</th>
      <th nzWidth="60px">酒币</th>
      <th nzWidth="60px">餐币</th>
      <th nzWidth="150px">注册日期</th>
      <th nzWidth="150px">是否是会员</th>
      <th nzWidth="150px">升级日期</th>
      <th nzWidth="60px">状态</th>
      <th nzWidth="160px" nzRight="0px">操作</th>
    </tr>
  </thead>
  <tbody>
    <tr *ngFor="let data of ajaxTable.data;index as i">
      <td nzLeft="0px">{{i+1}}</td>
      <td>{{data.nickname}}</td>
      <!-- <td>{{data.name}}</td> -->
      <td>{{data.phone}}</td>
      <td>{{data.coinbalance}}</td>
      <td>{{data.mealbalance}}</td>
      <td>{{data.createTime | date:"yyyy/MM/dd HH:mm"}}</td>
      <td>{{data.ismember}}</td>
      <td>{{data.uptime | date:"yyyy/MM/dd HH:mm"}}</td>
      <td>{{data.status}}</td>
      <td nzRight="0px">
        <a *ngIf="data.status=='有效'" (click)="lock(data._id)">禁用</a>
        <a *ngIf="data.status!='有效'" (click)="open(data._id)">启用</a>
        <a (click)="winelist(data._id)">酒币账单</a>
        <a (click)="mealslist(data._id)">餐费账单</a>
      </td>
    </tr>
  </tbody>
</nz-table>

<ng-template #totalTemplate let-total>
  共 {{total}} 条
</ng-template>